package com.cn.mybatis.dao;

import com.cn.mybatis.pojo.RoleBean;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface IRoleDao {

    @Select("select * from sys_user_role s1, sys_role s2 where s1.roleid = s2.id and s1.userid = #{uid}")
    public List<RoleBean> getListByUid(Integer uid);

}
